Skip to content

[3.13] gh-69134: Wait until mapped in keyboard virtual-event tests (GH-152599)#152607

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
miss-islington:backport-be4eebb-3.13
Jun 29, 2026
Merged

[3.13] gh-69134: Wait until mapped in keyboard virtual-event tests (GH-152599)#152607
serhiy-storchaka merged 1 commit into
python:3.13from
miss-islington:backport-be4eebb-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

test_virtual_events and test_selection_event generate key events after
focus_force(). On Windows these are only delivered once the toplevel is
mapped, so they could be dropped and the test fail. Wait until the
widget is mapped, as the other GUI tests already do.
(cherry picked from commit be4eebb)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

…thonGH-152599)

test_virtual_events and test_selection_event generate key events after
focus_force().  On Windows these are only delivered once the toplevel is
mapped, so they could be dropped and the test fail.  Wait until the
widget is mapped, as the other GUI tests already do.
(cherry picked from commit be4eebb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@serhiy-storchaka serhiy-storchaka merged commit b066cd5 into python:3.13 Jun 29, 2026
42 checks passed
@miss-islington miss-islington deleted the backport-be4eebb-3.13 branch June 29, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants